﻿'use strict';

QuotingToolApp
//Datepicker
    .directive("quotesdatepicker", function () {
        return {
            restrict: "E",
            scope: {
                dtPicker: "=ngModel",
                dateOptions: "=",
                opened: "=",
            },
            link: function ($scope, element, attrs) {
                $scope.open = function ($event) {                    
                    $event.preventDefault();
                    $event.stopPropagation();
                    $scope.opened = true;
                };

                $scope.clear = function () {
                    $scope.ngModel = null;                    
                };
            },
            templateUrl: 'templates/DatePicker.html'
        }
    });